package com.cetcs.kmga.dataManager.entity.device.vi;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

public class DeviceInfoVi {
    //设备编号
    private String id;
    //设备名称
    @NotEmpty(message = "设备不能为空")
    private String device_name;
    //设备ip
    @Pattern(regexp = "^((25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))\\.){3}(25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))$", message= "ip格式不正确")
    private String device_ip;
    //设备mac地址
    @Pattern(regexp = "^([0-9a-fA-F]{2})(([/\\s:-][0-9a-fA-F]{2}){5})$", message= "mac格式不正确")
    private String device_mac;
    //设备类型
    @NotEmpty(message = "请选择设备类型")
    private String device_type;
    //地点
    @NotEmpty(message = "设备位置不能为空")
    private String device_location;
    //管理人姓名
    @NotEmpty(message = "管理人员姓名为空")
    private String device_adminName;
    //管理人电话
    private String device_adminPhone;
    //管理员 账号
    private String device_userName;
    //管理员 密码
    private String device_userPassword;
    //设备厂商
    @NotEmpty(message = "设备厂商不能为空")
    private String device_manuf;
    //设备版本
    private String device_vers;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDevice_name() {
        return device_name;
    }

    public void setDevice_name(String device_name) {
        this.device_name = device_name;
    }

    public String getDevice_ip() {
        return device_ip;
    }

    public void setDevice_ip(String device_ip) {
        this.device_ip = device_ip;
    }

    public String getDevice_mac() {
        return device_mac;
    }

    public void setDevice_mac(String device_mac) {
        this.device_mac = device_mac;
    }

    public String getDevice_type() {
        return device_type;
    }

    public void setDevice_type(String device_type) {
        this.device_type = device_type;
    }

    public String getDevice_location() {
        return device_location;
    }

    public void setDevice_location(String device_location) {
        this.device_location = device_location;
    }

    public String getDevice_adminName() {
        return device_adminName;
    }

    public void setDevice_adminName(String device_adminName) {
        this.device_adminName = device_adminName;
    }

    public String getDevice_adminPhone() {
        return device_adminPhone;
    }

    public void setDevice_adminPhone(String device_adminPhone) {
        this.device_adminPhone = device_adminPhone;
    }

    public String getDevice_userName() {
        return device_userName;
    }

    public void setDevice_userName(String device_userName) {
        this.device_userName = device_userName;
    }

    public String getDevice_userPassword() {
        return device_userPassword;
    }

    public void setDevice_userPassword(String device_userPassword) {
        this.device_userPassword = device_userPassword;
    }

    public String getDevice_manuf() {
        return device_manuf;
    }

    public void setDevice_manuf(String device_manuf) {
        this.device_manuf = device_manuf;
    }

    public String getDevice_vers() {
        return device_vers;
    }

    public void setDevice_vers(String device_vers) {
        this.device_vers = device_vers;
    }
}
